<?php
/*
 * Created on 04.01.2006
 *
 */

class c_elseifHandler 
{
    
    function parentIn ()
    {
        return array('c:if', 'c:elseif');
    }

    function startElement (& $sender, $attrs, $line)
    {
        if (!$attrs['test'])
        {
            die ("Attribute test is missing in c:elseif tag in line $line!\n");
        }
        $sender->appendCode('} elseif ('.$attrs['test'].'){'."\n");
    }
    
    function endElement (& $sender)
    {
    }

}

?>
